import { http } from "@/utils/http.js";

//我的收入
export const myIncome = (data) => {
  return http.request({
    method: "get",
    url: "/settle/myIncome",
    params: data,
  });
};

//分类
export const cate = (data) => {
  return http.request({
    method: "get",
    url: "/cate",
    params: { ...data, offLoading: true },
  });
};
//商品
export const productlst = (data) => {
  return http.request({
    method: "get",
    url: "product/lst",
    params: { ...data, offLoading: true },
  });
};

export const bannerlist = (data) => {
  return http.request({
    method: "get",
    url: "/common/banner",
    params: { ...data, offLoading: true },
  });
};

//介绍相关
export const introApi = (data) => {
  return http.request({
    method: "get",
    url: "/base/intro",
    params: data,
  });
};

//首页商品
export const productindex = (data) => {
  return http.request({
    method: "get",
    url: "/product/index",
    params: data,
  });
};
